<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>兆千图</title>
    <link rel="stylesheet" href="../../css/api.css">
    <link rel="stylesheet" href="../../css/news.css">
    <link rel="stylesheet" href="../../css/modal.css">
</head>

<body>
    <div id="view" v-cloak>
        <div class="modal-bg" onclick="_close()">
            <div class="modal">
                <img class="img-bg" :src="_i18nImg('../../image/modal/notice.png')" alt="">
                <div class="container">
                    <div class="content">
                        <p>{{gonggao_content}}</p>
                       
                    </div>
                    <div class="flex-c">
                        <button class="modal-btn">{{_i18n('我知道了')}}</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/jquery.js"></script>
<script src="../../script/ffkj.js"></script>
<script src="../../script/vue.js"></script>
<script>
    var view = new Vue({
        el: '#view',
        data: {
            imgurl: imgurl,
            ffList: [],
            ffInfo: {},
            gonggao_content : '',
            is_login_out:0,
            ios: 1, // 1上架 0非上架
        },
        methods: {
            // 跳转
            _url(param, url) {
                _url(param, url);
            },
            // 返回图片路径
            returnImg(url) {
                return returnImg(url);
            },
        }
    })
    apiready = function() {
        _ajax('api/config/announcement', function(ret, err) {
            if (ret && ret.code == 200) {
  
                console.log(JSON.stringify(ret),'23423434')
                if(ret.data.gonggao == 1){
                    view.gonggao_content = ret.data.gonggao_content
                    view.is_login_out = ret.data.is_login_out
                }
            }
        },{
            user_id:$api.getStorage('userid'),
        })
    }

    //
    function _close() {
        //$api.setStorage('announcement_off',1);
        api.closeFrame();
        _ajax('api/config/save_user_announcement', function(ret, err) {
            if(view.is_login_out == 1){
               _login();
               console.log('_login22222222',view.is_login_out)
            }
           
        },{
            user_id:$api.getStorage('userid'),
        })
       
    }
</script>

</html>
